'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
    async index() {
//        this.ctx.body = 'hi, egg';
        const data = { name: 'egg' };
         await this.ctx.render('home/index.tpl', data);
    }
    async city() {
        const res = await this.ctx.service.homeService.city();
        this.ctx.body = res;
    }
}

module.exports = HomeController;
